home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_e3.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  73 lines

  1. # Jones 3D Cog Script
  2. #
  3. # E-3 Items cog
  4. #
  5. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  6. #
  7. # ===================================================================
  8.  
  9. symbols
  10.  
  11. message    startup
  12.  
  13. int    machette=0
  14. int    mp1=0
  15. int    mp2=0
  16. int    mp3=0
  17.  
  18. # Change to 1 for unwanted items.
  19.  
  20. thing        player                        local
  21. int        machettebin=7                    local
  22. int        imp1bin=14                        local
  23. int        imp2bin=15                        local
  24. int        imp3bin=16                        local
  25.  
  26.  
  27. end
  28.  
  29. # ===================================================================
  30.  
  31. code
  32.  
  33. startup:
  34.     sleep(0.01);
  35.     player = GetLocalPlayerThing();
  36.     
  37.     Sleep(1.0);
  38.     
  39.     if(machette == 0)
  40.     {
  41.         ChangeInv(player, machettebin, 1.0);
  42.         SetInvAvailable(player, machettebin, 1);
  43.         #JonesInvItemChanged(machettebin);
  44.     }
  45.     if(mp1 == 0)
  46.     {
  47.         ChangeInv(player, imp1bin, 1.0);
  48.         SetInvAvailable(player, imp1bin, 1);
  49.         #JonesInvItemChanged(imp1bin);
  50.     }
  51.     if(mp2 == 0)
  52.     {
  53.         ChangeInv(player, imp2bin, 1.0);
  54.         SetInvAvailable(player, imp2bin, 1);
  55.         #JonesInvItemChanged(imp2bin);
  56.     }
  57.     if(mp3 == 0)
  58.     {
  59.         ChangeInv(player, imp3bin, 1.0);
  60.         SetInvAvailable(player, imp3bin, 1);
  61.         #JonesInvItemChanged(imp3bin);
  62.     }
  63.     return;
  64.  
  65. end
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.